projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9076ba2
)
Fix waypt counter in waypt_backup
author
oliskoli
<oliskoli>
Thu, 13 Oct 2005 21:52:42 +0000
(21:52 +0000)
committer
oliskoli
<oliskoli>
Thu, 13 Oct 2005 21:52:42 +0000
(21:52 +0000)
waypt.c
patch
|
blob
|
history
diff --git
a/waypt.c
b/waypt.c
index 0fdbc2b0298804e771f918288a87d59eac3adc4f..c01defd1c5d675ce9db885c46d7164658b98fc48 100644
(file)
--- a/
waypt.c
+++ b/
waypt.c
@@
-320,8
+320,7
@@
waypt_backup(unsigned int *count, queue **head_bak)
{
queue *elem, *tmp, *qbackup;
waypoint *wpt;
- // BUG(akirmse): no was not initialized. Set to 0 for now to compile it.
- int no = 0;
+ int no = 0;
qbackup = (queue *) xcalloc(1, sizeof(*qbackup));
QUEUE_INIT(qbackup);
@@
-335,6
+334,7
@@
waypt_backup(unsigned int *count, queue **head_bak)
{
wpt = (waypoint *)elem;
waypt_add(waypt_dupe(wpt));
+ no++;
}
*head_bak = qbackup;